﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service.Core
{
    public abstract class ServiceProvider
    {
        public abstract Task<ServiceResult> doProcess(ServiceModel model);

        protected Task<ServiceResult> defaultProcess()
        {
            return Task.Factory.StartNew<ServiceResult>(() =>
                {
                    ServiceResult result = new ServiceResult();
                    return result;
                });
        }
    }
}
